'use strict'

module.exports = (app) => {
    const { STRING, INTEGER, DATE } = app.Sequelize
    const Chat = app.model.define('chat', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        sendId: INTEGER,
        receiveId: INTEGER,
        msg: STRING,
        chatDate: DATE,
    })

    return Chat
}
